@import '../../styles/variables.scss';

.calendar-component {
  border-radius: $border-radius-large;
  background: $white;
  border: $border-width solid $border-color;
  padding: 20rpx;
  
  .calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 36rpx;
    
    .calendar-month-text {
      font-size: 32rpx;
      font-weight: 700;
    }
    
    .calendar-nav-icon {
      width: 36rpx;
      height: 36rpx;
      
      &-prev {
        // 可以添加特殊样式
      }
      
      &-next {
        // 可以添加特殊样式
      }
    }
  }
  
  .calendar-weekdays {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20rpx 0;
  }
  
  .calendar-weekday {
    height: 48rpx;
    flex: 1;
    line-height: 48rpx;
    text-align: center;
    color: rgba(152, 157, 179, 1);
    font-size: 26rpx;
    font-weight: 600;
  }
  
  .calendar-days-grid {
    display: flex;
    flex-wrap: wrap;
  }
  
  .calendar-day {
    width: 14.2857%; /* 7天平分 */
    height: 80rpx;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    font-size: 28rpx;
    font-weight: 600;
    
    &-empty {
      color: transparent;
    }
    
    &-today {
      // 今天日期样式
    }
    
    &-selected {
      padding: 8rpx 16rpx;
      border-radius: 11px;
      background: rgba(56, 56, 56, 1);
      color: $white;
    }
  }
}